package com.gxuwz.attendance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gxuwz.attendance.dao.TeacherDao;
import com.gxuwz.attendance.entity.Teacher;
import com.gxuwz.attendance.service.TeacherService;
import com.gxuwz.attendance.vo.Page;

@Service("TeacherServiceImpl")
public class TeacherServiceImpl implements TeacherService{
	
	@Autowired
	private TeacherDao teacherDao;
	
	@Override
	public boolean addTeacher(Teacher teacher) {
		return teacherDao.addTeacher(teacher);
	}

	@Override
	public boolean updateTeacher(Teacher teacher) {
		return teacherDao.updateTeacher(teacher);
	}

	@Override
	public boolean deleteTeacher(String ids) {
		return teacherDao.deleteTeacher(ids);
	}

	@Override
	public List<Teacher> findByPage(Teacher teacher, Page page) {
		return teacherDao.findByPage(teacher, page);
	}

}
